package com.pzhu.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.pzhu.model.help.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 角色表
 * @TableName hs_role
 */
@TableName(value ="hs_role")
@ApiModel("角色实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Role extends BaseEntity implements Serializable {

    /**
     * 角色名称
     */
    @TableField(value = "name")
    @ApiModelProperty("角色名称")
    private String name;

    /**
     * 角色权限字符串
     */
    @TableField(value = "code")
    @ApiModelProperty("角色权限字符串")
    private String code;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}